import React, { Component } from 'react';
import pic from './tu/chuangzuo.jpg';
import "./add.css";

class Add extends Component {

    constructor(props) {
        super(props);
    }

    render(props) {
        return (
            <div >
                <div id='back' style=
                {{backgroundImage:`url(${pic})`}}>
                </div>
                <div id='notes' onClick={() => this.props.history.push('/Notes')}>
                <i  className='iconfont iconxiepinglun'></i>
                 随笔
                </div> 
                <div id='essay' onClick={() => this.props.history.push('/Essay')}>
                 <i  className='iconfont iconwendangzhongxin'></i>
                  文章
                </div>
            </div>
        )
    }}

export default Add
